<?php
$name = isset($name)?$name:"menu[itemID]";	//select的name值
$currentID = isset($currentID)?$currentID:0;
$append = isset($append)?$append:'';
$dao = new DaoAlbum();
$albums = $dao->getAll("1");
?>
<select name="<?php echo $name;?>" style="width: 184px;" <?php echo $append;?>>
	<option value="0">顶级分类</option>
	<?php foreach($albums as $album):?>
		<option "<?php if($currentID==$album['id']) echo 'selected';?>" value="<?php echo $album['id'];?>"><?php echo $album['title'];?></option>
	<?php endforeach;?>
</select>

